//
//  SearchProgressTableviewCell.m
//  danpin
//
//  Created by Hongyu Zhang on 15/11/12.
//  Copyright © 2015年 chuangjia. All rights reserved.
//

#import "SearchProgressTableviewCell.h"

@implementation SearchProgressTableviewCell
@synthesize isline=_isline;
- (void)awakeFromNib {
    // Initialization code
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)drawRect:(CGRect)rect {
    
    [super drawRect:rect];
    
    if (_isline) {
        CGContextRef ctx = UIGraphicsGetCurrentContext();
        CGContextSetRGBStrokeColor(ctx, 0.6, 0.6, 0.6, 0.5);
        CGContextSetLineWidth(ctx, 0.5);
        
        CGContextMoveToPoint(ctx, 0, 0);
        
        
        CGContextAddLineToPoint(ctx,0, self.bounds.size.height);
        
        
        CGContextStrokePath(ctx);
    }
    
    
    
    
    //   self.lineView.frame =CGRectMake(0, self.bounds.size.height-0.5, DEVICE_WIDTH, 0.5);
    
}

@end
